import request from '@/config/axios'
import type { TableData } from './types'


//OrderList
export const OrderList = (data: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/addOrdersGoods', data })
}

export const Exhibition = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/getOrderDetails', params })
}

//CurriculumList
export const CurriculumList = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/selCourseOrderListData', params })
}

export const Exhibition2 = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/selCourseOrderLists', params })
}

//ReturnList
export const ReturnList = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/returnGoods', params })
}

export const Exhibition3 = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/getOrderDetails', params })
}

//DmList
export const DmList = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selDeptList', params })
}

export const updDeptInfo = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/updDeptInfo', params })
}

export const del = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/delDeptInfo', params })
}

export const updDeptStatus = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/updDeptStatus', params })
}

// BmpList
export const selDeptName = (params: any): Promise<IResponse> => {
  return request.get({ url: '/api/personnel/selDeptName', params })
}

export const selBackUserList = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selBackUserList', params })
}

export const updBackUserEnabled = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/updBackUserEnabled', params })
}

export const selJurisdiction = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selJurisdiction', params })
}


export const saveTableApi = (data: Partial<TableData>): Promise<IResponse> => {
  return request.post({ url: '/example/save', data })
}

export const getTableDetApi = (id: string): Promise<IResponse<TableData>> => {
  return request.get({ url: '/example/detail', params: { id } })
}

export const delTableListApi = (ids: string[] | number[]): Promise<IResponse> => {
  return request.post({ url: '/example/delete', data: { ids } })
}
//王姿
export const getTableListApi = (): Promise<IResponse> => {
  return request.get({ url: '/api/personnel/selCourseCollection'})
}
export const getTableList2Api = (): Promise<IResponse> => {
  return request.get({ url: '/api/personnel/selCoursePraise'})
}
export const getWeiQuanDianZanTongJiApi = ()=> {
  return request.get({ url: '/api/personnel/selMicroCirclePraise'})
}
export const getSouSuoGuanJianZiTongJiApi = ()=> {
  return request.get({ url: '/api/personnel/selSearchNums'})
}
export const getKeChengGuanKanLiangTongJiApi = ()=> {
  return request.get({ url: '/api/personnel/selCourseLookNum'})
}
export const getWeiQuanLiuLanLiangTongJiApi = ()=> {
  return request.get({ url: '/api/personnel/selMicrocirclePreview'})
}


export const SyOperationControllerAddOrdersGoods = () => {
  return request.get({ url: '/api/SyOperationController/addOrdersGoods' })
}



export const hou = () => {
  return request.get({ url: '/api/login/selSystemInfo' })
}